package com.gourd.common.enums;

import com.alibaba.fastjson.annotation.JSONType;
import lombok.Getter;
import lombok.Setter;

/**
 * 字典类型枚举工具类
 *
 * @author gourd
 * @create 2018-07-04 15:41
 **/
@JSONType(serializeEnumAsJavaBean = true)
public enum DicTypeEnum {
    COUNTRY("COUNTRY","国家"),
    CITY("CITY","城市"),
    PROVINCE("PROVINCE","省份"),
    AREA("AREA","地区"),
    SEX("SEX","性别"),
    LOCKED("LOCKED","锁"),
    PLATFORM_TYPE("PLATFORM_TYPE","设备类型"),
    CRUD("CRUD","CRUD");

    @Getter
    @Setter
    private String value;

    @Getter
    @Setter
    private String label;

    DicTypeEnum(String value, String label) {
        this.value = value;
        this.label = label;
    }
}